import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useArticleStore = defineStore('articleStore', {
    state: () => ({
        id:ref(""),
        title: ref(""),
        content : ref(""),
        author : ref(""),
        type : ref("") ,
        userId : ref(0),
        authorCreatedTime : ref(""),
        visits : ref(0) ,
        state : ref("") ,
        imageId : ref([]),
    })
})